<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/aui.css">
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="js/init.js"></script>
    <title>新闻详情</title>
</head>
<body>
<header>
    <a href="javascript:history.back(-1)" class="f1 head-back"></a>
    <div class="f8">新闻详情</div>
    <div class="f1"></div>
</header>
<section class="bg-gray">
    <div class="pad-3">
        <div class="pad-b-2 border-b-gray">
            <h2 id="title" class="center"></h2>
            <p id="time" class="font25 right pad-t-2">0000-00-00</p>
        </div>
        <div id="cont" class="color-gray pad-t-b-2">

        </div>
    </div>

</section>

<script src="js/foot.js"></script>
<script>
    var id = getQueryString('id');
    var data = {};
    data.userid = localStorage.user_id;
    data.token = localStorage.token;
    data.id = id;

    new AjaxRequest({
        type: 'post',
        dataType: 'json',
        url: hostUrl + 'index/notice/detailed',
        data: data,
        callback: res => {
            if(res.status == 1){

                $("#title").html(res.data.title);
                $("#time").text(res.data.creattime);
                $("#cont").html(res.data.content);


            }
        }
    });



</script>
</body>
</html>



